﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace ChooseGameGrade
{
    public partial class ChooseGameGrade : PhoneApplicationPage
    {
        
        public ChooseGameGrade()
        {
            InitializeComponent();
            InitUI();
        }

        private void InitUI()
        {
            ChooseGameGradeViewModel chooseGameGradeViewModel = new ChooseGameGradeViewModel();
        
            chooseGameGradeViewModel.ItemOneCollection.Add(
                new ChooseGameGradeModelOne() {
                    ItemOneUri = "/Resource/Image/TraditionModeImage.png"
                });
            chooseGameGradeViewModel.ItemOneCollection.Add(
                new ChooseGameGradeModelOne()
                {
                    ItemOneUri = "/Resource/Image/RightBrainMode.png"
                });
            chooseGameGradeViewModel.ItemTwoCollection.Add(
                new ChooseGameGradeModelTwo()
                {
                    ItemTwoUri = "/Resource/Image/CreateSceneMode.png"
                });
            chooseGameGradeViewModel.ItemTwoCollection.Add(
                new ChooseGameGradeModelTwo()
                {
                    ItemTwoUri = "/Resource/Image/VSMode.png"
                });
            this.DataContext = chooseGameGradeViewModel;
        }

        /// <summary>
        /// Event: according to seleted Item.
        /// </summary>
        /// <param name="uriName"></param>
        private void FirstPanoramaItem_SelectionChanged(object sender, GestureEventArgs e)
        {

        }

        /// <summary>
        /// Event: according to seleted Item.
        /// </summary>
        /// <param name="uriName"></param>
        private void SecondPanoramaItem_SelectionChanged(object sender, GestureEventArgs e)
        {

        }
    }
}